
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml">
    
<head>   
   

    <script type="text/javascript" src="http://c.csdnimg.cn/pubfooter/js/tracking.js" charset="utf-8"></script>  

    <script type="text/javascript">
        var protocol = window.location.protocol;
        document.write('<script type="text/javascript" src="' + protocol + '//csdnimg.cn/pubfooter/js/repoAddr2.js?v=' + Math.random() + '"></' + 'script>');
    </script>

  
 <meta http-equiv="Cache-Control" content="no-siteapp" /><link rel="alternate" media="handheld" href="#" />

    <title>maven配置pom.xml文件详解 - 执行梦想代码
        - 博客频道 - CSDN.NET</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="Hibernate 设计了 CriteriaSpecification 作为 Criteria 的父接口，下面提供了 Criteria和DetachedCriteria 。&#160;&#160; Criteria 和 DetachedCriteria 的主要区别在于创建的形式不一样， Crit" />
    <script src="http://static.blog.csdn.net/scripts/jquery.js" type="text/javascript"></script>
      <script type="text/javascript" src="http://static.blog.csdn.net/scripts/jquery-version.js"></script>
    <script type="text/javascript" src="http://static.blog.csdn.net/scripts/ad.js?v=1.1"></script>
        <!--new top-->
               <link rel="stylesheet" href="http://c.csdnimg.cn/public/common/toolbar/css/index.css">        <!--new top-->
    
      <!-- ad begin -->
         <script language="javascript" type="text/javascript" src="http://ads.csdn.net/js/tracking.js"></script>
    <!-- ad end-->

    <link rel="Stylesheet" type="text/css" href="http://static.blog.csdn.net/skin/dark1/css/style.css?v=1.1" />
    <link id="RSSLink" title="RSS" type="application/rss+xml" rel="alternate" href="/uohzoaix/rss/list" />
    <link rel="shortcut icon" href="http://c.csdnimg.cn/public/favicon.ico" />
    <link type="text/css" rel="stylesheet" href="http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/blue_green.css" />
 


</head>
<body>
    <!-- 广告位开始 -->
        <ins data-revive-zoneid="149" data-revive-id="8c38e720de1c90a6f6ff52f3f89c4d57"></ins>
    <!-- 广告位结束 -->

    
   
      <!--new top-->
    <script id="toolbar-tpl-scriptId" fixed="true" prod="blog" skin="black" src="http://c.csdnimg.cn/public/common/toolbar/js/html.js" type="text/javascript"></script>
     <!--new top-->
    <div id="container">
        <div id="header">
    <div class="header">
        <div id="blog_title">
            <h2>
                <a href="http://blog.csdn.net/uohzoaix">执行梦想代码</a></h2>
            <h3></h3>
            <div class="clear">
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
</div>
<div id="navigator">
    <div class="navigator_bg">
    </div>
    <div class="navigator">
        <ul>
            
                <li id="btnContents"><a href="http://blog.csdn.net/uohzoaix?viewmode=contents"><span onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_mulu'])">
                    <img src="http://static.blog.csdn.net/images/ico_list.gif">目录视图</span></a></li>
                <li id="btnView"><a href="http://blog.csdn.net/uohzoaix?viewmode=list"><span onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_zhaiyao'])">
                    <img src="http://static.blog.csdn.net/images/ico_summary.gif">摘要视图</span></a></li>
                <li id="btnRss"><a href="http://blog.csdn.net/uohzoaix/rss/list"><span onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_RSS'])">
                    <img src="http://static.blog.csdn.net/images/ico_rss.gif">订阅</span></a></li>                
            

            </ul>
    </div>
</div>
<script type="text/javascript">
    var username = "uohzoaix";
    var _blogger = username;
    var blog_address = "http://blog.csdn.net/uohzoaix";
    var static_host = "http://static.blog.csdn.net";
    var currentUserName = "";  
</script>

        <div id="body">
            <div id="main">
                <div class="main">
                        <div class="ad_class">
<div class="notice tracking-ad" data-mod='popu_3' > 

<a href="http://ask.csdn.net/subjects/3
">
<font color=red>【专家问答】郭神驾到
</font></a>
&nbsp;&nbsp;&nbsp;
<a href="http://huiyi.csdn.net/activity/product/goods_list?project_id=2947">
<font color=blue>chinapub读书会 第9期：深入解析Linux</font></a>
&nbsp;&nbsp;&nbsp;
<a href="http://edu.csdn.net/huiyiCourse/detail/126">
<font color=red>【免费公开课】Python黑客编程之局域网嗅探和敏感信息探测</font></a>
&nbsp;&nbsp;&nbsp;


</font></a>
</div>                        </div>
                        



<!-- 广告位开始 -->
<ins data-revive-zoneid="72" data-revive-id="8c38e720de1c90a6f6ff52f3f89c4d57"></ins>
<!-- 广告位结束 -->

  
<link href="http://static.blog.csdn.net/css/comment1.css" type="text/css" rel="stylesheet" />
<link href="http://static.blog.csdn.net/css/style1.css" type="text/css" rel="stylesheet" />
<script language='JavaScript' type='text/javascript' src='http://download.csdn.net/js/jquery.cookie.js'></script>
<script type="text/javascript" src="http://c.csdnimg.cn/rabbit/search-service/main.js"></script>
<link rel="stylesheet" href="http://static.blog.csdn.net/public/res-min/markdown_views.css?v=1.0" />
<link rel="stylesheet" href="http://static.blog.csdn.net/css/category.css?v=1.0" />
<script type="text/javascript" src="http://static.blog.csdn.net/public/res/bower-libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>

 <script type="text/javascript" src="http://static.blog.csdn.net/scripts/web-storage-cache.min.js"></script>

<script type="text/javascript" src="http://static.blog.csdn.net/scripts/web-storage-cache.min.js"></script>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/replace.min.js"></script>

  <script type="text/ecmascript">
      window.quickReplyflag = true;
           
            var isBole = false;
            
          
    </script>
<div id="article_details" class="details">
    <div class="article_title">   
         <span class="ico ico_type_Repost"></span>


    <h1>
        <span class="link_title"><a href="/uohzoaix/article/details/7035307">
        maven配置pom.xml文件详解            
        </a></span>
    </h1>
</div>

   

        <div class="article_manage clearfix">
        <div class="article_l">
            <span class="link_categories">
            标签：
              <a href='http://www.csdn.net/tag/maven' target=_blank onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_tag']);">maven</a><a href='http://www.csdn.net/tag/xml' target=_blank onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_tag']);">xml</a><a href='http://www.csdn.net/tag/dependencies' target=_blank onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_tag']);">dependencies</a><a href='http://www.csdn.net/tag/build' target=_blank onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_tag']);">build</a><a href='http://www.csdn.net/tag/%e6%8a%a5%e8%a1%a8' target=_blank onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_tag']);">报表</a><a href='http://www.csdn.net/tag/system' target=_blank onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_tag']);">system</a>
            </span>
        </div>
        <div class="article_r">
            <span class="link_postdate">2011-12-02 15:36</span>
            <span class="link_view" title="阅读次数">8184人阅读</span>
            <span class="link_comments" title="评论次数"> <a href="#comments" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_pinglun'])">评论</a>(0)</span>
            <span class="link_collect tracking-ad" data-mod="popu_171"> <a href="javascript:void(0);" onclick="javascript:collectArticle('maven配置pom.xml文件详解','7035307');return false;" title="收藏">收藏</a></span>
             <span class="link_report"> <a href="#report" onclick="javascript:report(7035307,2);return false;" title="举报">举报</a></span>

        </div>
    </div>
    <div class="embody"  style="display:none" id="embody">
        <span class="embody_t">本文章已收录于：</span>
        <div class="embody_c" id="lib" value="{&quot;err&quot;:0,&quot;msg&quot;:&quot;ok&quot;,&quot;data&quot;:[]}"></div>
    </div>
    <style type="text/css">        
            .embody{
                padding:10px 10px 10px;
                margin:0 -20px;
                border-bottom:solid 1px #ededed;                
            }
            .embody_b{
                margin:0 ;
                padding:10px 0;
            }
            .embody .embody_t,.embody .embody_c{
                display: inline-block;
                margin-right:10px;
            }
            .embody_t{
                font-size: 12px;
                color:#999;
            }
            .embody_c{
                font-size: 12px;
            }
            .embody_c img,.embody_c em{
                display: inline-block;
                vertical-align: middle;               
            }
             .embody_c img{               
                width:30px;
                height:30px;
            }
            .embody_c em{
                margin: 0 20px 0 10px;
                color:#333;
                font-style: normal;
            }
    </style>
    <script  type="text/javascript">
        $(function () {
            var lib = eval("("+$("#lib").attr("value")+")");
            var html = "";
            if (lib.err == 0) {
                $.each(lib.data, function (i) {
                    var obj = lib.data[i];
                    //html += '<img src="' + obj.logo + '"/>' + obj.name + "&nbsp;&nbsp;";
                    html += ' <a href="' + obj.url + '" target="_blank">';
                    html += ' <img src="' + obj.logo + '">';
                    html += ' <em><b>' + obj.name + '</b></em>';
                    html += ' </a>';
                });
                if (html != "") {
                    setTimeout(function () {
                        $("#lib").html(html);
                        /*
                        var testhtml = "";
                        testhtml += '<a href="#">';
                        testhtml += '<img src="http://img.knowledge.csdn.net/upload/base/1455589744328_328.jpg">';
                        testhtml += '<em>Android知识库</em>';
                        testhtml += '</a>';
                        $(".embody_c").html(testhtml);
                        */
                        $("#embody").show();
                    }, 100);
                }
            }          
            
        });
    </script>
      <div class="category clearfix">
        <div class="category_l">
           <img src="http://static.blog.csdn.net/images/category_icon.jpg">
            <span>分类：</span>
        </div>
        <div class="category_r">
                    <label  onclick="GetCategoryArticles('939458','uohzoaix','top','7035307');">
                        <span onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_fenlei']);">javaEE<em>（69）</em></span>
                      <img class="arrow-down" src="http://static.blog.csdn.net/images/arrow_triangle _down.jpg" style="display:inline;">
                      <img class="arrow-up" src="http://static.blog.csdn.net/images/arrow_triangle_up.jpg" style="display:none;">
                        <div class="subItem">
                            <div class="subItem_t"><a  href="http://blog.csdn.net/uohzoaix/article/category/939458"  target="_blank">作者同类文章</a><i class="J_close">X</i></div>
                            <ul class="subItem_l" id="top_939458">                            
                            </ul>
                        </div>
                    </label>                    
        </div>
    </div>
    <script   type="text/javascript" src="http://static.blog.csdn.net/scripts/category.js"></script>  

  

  
  
     

<div id="article_content" class="article_content">

<div id="blog_content" class="blog_content"><span style="line-height:30px; font-size:14px"><strong>什么是pom?</strong><br>
&nbsp;&nbsp;&nbsp; pom作为项目对象模型。通过xml表示maven项目，使用pom.xml来实现。主要描述了项目：包括配置文件；开发者需要遵循的规则，缺陷管理系统，组织和licenses，项目的url，项目的依赖性，以及其他所有的项目相关因素。<br>
<strong>快速察看：</strong><br>
</span>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">modelVersion</span><span class="tag">&gt;</span>4.0.0<span class="tag"><span class="tag-name">modelVersion</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="comments"></span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">groupId</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">groupId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">version</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">version</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">packaging</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">packaging</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">dependencies</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">dependencies</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">parent</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">parent</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">dependencyManagement</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">dependencyManagement</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">modules</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">modules</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">properties</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">properties</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;<span class="comments"></span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">build</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">reporting</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">reporting</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;<span class="comments"></span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">name</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">name</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">description</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">description</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">url</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">url</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">inceptionYear</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">inceptionYear</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">licenses</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">licenses</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">organization</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">organization</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">developers</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">developers</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">contributors</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">contributors</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;<span class="comments"></span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">issueManagement</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">issueManagement</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">ciManagement</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">ciManagement</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">mailingLists</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">mailingLists</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">scm</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">scm</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">prerequisites</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">prerequisites</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">repositories</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">repositories</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">pluginRepositories</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">pluginRepositories</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">distributionManagement</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">distributionManagement</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">profiles</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">profiles</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt"><span class="tag"><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
<strong>基本内容：</strong><br>
&nbsp;&nbsp;&nbsp; POM包括了所有的项目信息。<br>
maven 相关：<br>
pom定义了最小的maven2元素，允许groupId,artifactId,version。所有需要的元素<br>
<ul>
<li><span style="line-height:30px; font-size:14px">groupId:项目或者组织的唯一标志，并且配置时生成的路径也是由此生成，如org.codehaus.mojo生成的相对路径为：/org/codehaus/mojo</span></li><li><span style="line-height:30px; font-size:14px">artifactId: 项目的通用名称</span></li><li><span style="line-height:30px; font-size:14px">version:项目的版本</span></li><li><span style="line-height:30px; font-size:14px">packaging: 打包的机制，如pom, jar, maven-plugin, ejb, war, ear, rar, par</span></li><li><span style="line-height:30px; font-size:14px">classifier: 分类</span></li></ul>
<span style="line-height:30px; font-size:14px"><strong>POM关系：</strong><br>
主要为依赖，继承，合成<br>
<strong>&nbsp; 依赖关系：</strong><br>
&nbsp; </span>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">dependencies</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">dependency</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">groupId</span><span class="tag">&gt;</span>junit<span class="tag"><span class="tag-name">groupId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>junit<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">version</span><span class="tag">&gt;</span>4.0<span class="tag"><span class="tag-name">version</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">type</span><span class="tag">&gt;</span>jar<span class="tag"><span class="tag-name">type</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">scope</span><span class="tag">&gt;</span>test<span class="tag"><span class="tag-name">scope</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">optional</span><span class="tag">&gt;</span>true<span class="tag"><span class="tag-name">optional</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">dependency</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;<span class="tag"><span class="tag-name">dependencies</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
<ul>
<li><span style="line-height:30px; font-size:14px">groupId, artifactId, version:描述了依赖的项目唯一标志</span></li></ul>
<blockquote><span style="line-height:30px; font-size:14px">可以通过以下方式进行安装：</span><br>
<span style="line-height:30px; font-size:14px"></span></blockquote>
<blockquote>
<ul>
<li><span style="line-height:30px; font-size:14px">使用以下的命令安装：</span></li><li><span style="line-height:30px; font-size:14px">mvn install:install-file –Dfile=non-maven-proj.jar –DgroupId=some.group –DartifactId=non-maven-proj –Dversion=1</span></li><li><span style="line-height:30px; font-size:14px">创建自己的库,并配置，使用deploy:deploy-file</span></li><li><span style="line-height:30px; font-size:14px">设置此依赖范围为system，定义一个系统路径。不提倡。</span></li></ul>
</blockquote>
<ul>
<li><span style="line-height:30px; font-size:14px">type:相应的依赖产品包形式，如jar，war</span></li><li><span style="line-height:30px; font-size:14px">scope:用于限制相应的依赖范围，包括以下的几种变量：</span></li></ul>
<blockquote>
<ul>
<li><span style="line-height:30px; font-size:14px">compile ：默认范围，用于编译</span></li><li><span style="line-height:30px; font-size:14px">provided：类&#20284;于编译，但支持你期待jdk或者容器提供，类&#20284;于classpath</span></li><li><span style="line-height:30px; font-size:14px">runtime:在执行时，需要使用</span></li><li><span style="line-height:30px; font-size:14px">test:用于test任务时使用</span></li><li><span style="line-height:30px; font-size:14px">system:需要外在提供相应得元素。通过systemPath来取得</span></li></ul>
</blockquote>
<ul>
<li><span style="line-height:30px; font-size:14px">systemPath: 仅用于范围为system。提供相应的路径</span></li><li><span style="line-height:30px; font-size:14px">optional: 标注可选，当项目自身也是依赖时。用于连续依赖时使用</span></li></ul>
<span style="line-height:30px; font-size:14px"><strong>&nbsp;&nbsp; 独占性&nbsp;&nbsp;</strong> &nbsp;<br>
&nbsp;&nbsp; 外在告诉maven你只包括指定的项目，不包括相关的依赖。此因素主要用于解决版本冲突问题<br>
&nbsp; </span>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">dependencies</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">dependency</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">groupId</span><span class="tag">&gt;</span>org.apache.maven<span class="tag"><span class="tag-name">groupId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>maven-embedder<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">version</span><span class="tag">&gt;</span>2.0<span class="tag"><span class="tag-name">version</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">exclusions</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">exclusion</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">groupId</span><span class="tag">&gt;</span>org.apache.maven<span class="tag"><span class="tag-name">groupId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>maven-core<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">exclusion</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">exclusions</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">dependency</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
表示项目maven-embedder需要项目maven-core，但我们不想引用maven-core<br>
<br>
<strong>继承关系</strong><br>
&nbsp;&nbsp;&nbsp; 另一个强大的变化,maven带来的是项目继承。主要的设置：<br>
定义父项目<br>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">modelVersion</span><span class="tag">&gt;</span>4.0.0<span class="tag"><span class="tag-name">modelVersion</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">groupId</span><span class="tag">&gt;</span>org.codehaus.mojo<span class="tag"><span class="tag-name">groupId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>my-parent<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">version</span><span class="tag">&gt;</span>2.0<span class="tag"><span class="tag-name">version</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">packaging</span><span class="tag">&gt;</span>pom<span class="tag"><span class="tag-name">packaging</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt"><span class="tag"><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
&nbsp;&nbsp;&nbsp; packaging 类型，需要pom用于parent和合成多个项目。我们需要增加相应的&#20540;给父pom，用于子项目继承。主要的元素如下：<br>
<ul>
<li><span style="line-height:30px; font-size:14px">依赖型</span></li><li><span style="line-height:30px; font-size:14px">开发者和合作者</span></li><li><span style="line-height:30px; font-size:14px">插件列表</span></li><li><span style="line-height:30px; font-size:14px">报表列表</span></li><li><span style="line-height:30px; font-size:14px">插件执行使用相应的匹配ids</span></li><li><span style="line-height:30px; font-size:14px">插件配置</span></li><li><span style="line-height:30px; font-size:14px">子项目配置</span></li></ul>
<span style="line-height:30px; font-size:14px"></span>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">modelVersion</span><span class="tag">&gt;</span>4.0.0<span class="tag"><span class="tag-name">modelVersion</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">parent</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">groupId</span><span class="tag">&gt;</span>org.codehaus.mojo<span class="tag"><span class="tag-name">groupId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>my-parent<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">version</span><span class="tag">&gt;</span>2.0<span class="tag"><span class="tag-name">version</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">relativePath</span><span class="tag">&gt;</span>../my-parent<span class="tag"><span class="tag-name">relativePath</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag"><span class="tag-name">parent</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>my-project<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li><span class="tag"><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
relativePath可以不需要，但是用于指明parent的目录，用于快速查询。<br>
<br>
<strong>dependencyManagement：</strong><br>
用于父项目配置共同的依赖关系，主要配置依赖包相同因素，如版本，scope。<br>
<br>
<strong>合成（或者多个模块）</strong><br>
&nbsp;&nbsp;&nbsp; 一个项目有多个模块，也叫做多重模块，或者合成项目。<br>
如下的定义：<br>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">modelVersion</span><span class="tag">&gt;</span>4.0.0<span class="tag"><span class="tag-name">modelVersion</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">groupId</span><span class="tag">&gt;</span>org.codehaus.mojo<span class="tag"><span class="tag-name">groupId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>my-parent<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">version</span><span class="tag">&gt;</span>2.0<span class="tag"><span class="tag-name">version</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">modules</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">module</span><span class="tag">&gt;</span>my-project1<span class="tag">&lt;</span><span class="tag-name">module</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">module</span><span class="tag">&gt;</span>my-project2<span class="tag">&lt;</span><span class="tag-name">module</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;<span class="tag"><span class="tag-name">modules</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li><span class="tag"><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
<br>
<strong>build 设置</strong><br>
&nbsp;&nbsp;&nbsp; 主要用于编译设置，包括两个主要的元素，build和report<br>
<strong>&nbsp; build</strong><br>
&nbsp;&nbsp;&nbsp; 主要分为两部分，基本元素和扩展元素集合<br>
注意：包括项目build和profile build<br>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="comments"></span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">build</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">profiles</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">profile</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="comments"></span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">build</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">profile</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag"><span class="tag-name">profiles</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li><span class="tag"><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
<br>
基本元素<br>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">defaultGoal</span><span class="tag">&gt;</span>install<span class="tag"><span class="tag-name">defaultGoal</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">directory</span><span class="tag">&gt;</span>${basedir}/target<span class="tag"><span class="tag-name">directory</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">finalName</span><span class="tag">&gt;</span>${artifactId}-${version}<span class="tag"><span class="tag-name">finalName</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">filters</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">filter</span><span class="tag">&gt;</span>filters/filter1.properties<span class="tag"><span class="tag-name">filter</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag"><span class="tag-name">filters</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;...&nbsp;&nbsp;</li><li class="alt"><span class="tag"><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
<ul>
<li><span style="line-height:30px; font-size:14px">defaultGoal: 定义默认的目标或者阶段。如install</span></li><li><span style="line-height:30px; font-size:14px">directory: 编译输出的目录</span></li><li><span style="line-height:30px; font-size:14px">finalName: 生成最后的文件的样式</span></li><li><span style="line-height:30px; font-size:14px">filter: 定义过滤，用于替换相应的属性文件，使用maven定义的属性。设置所有placehold的&#20540;</span></li></ul>
<span style="line-height:30px; font-size:14px"><br>
<strong>资源(resources)</strong><br>
&nbsp;&nbsp;&nbsp; 你项目中需要指定的资源。如spring配置文件,log4j.properties<br>
</span>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">resources</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">resource</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">targetPath</span><span class="tag">&gt;</span>META-INF/plexus<span class="tag"><span class="tag-name">targetPath</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">filtering</span><span class="tag">&gt;</span>false<span class="tag"><span class="tag-name">filtering</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">directory</span><span class="tag">&gt;</span>${basedir}/src/main/plexus<span class="tag"><span class="tag-name">directory</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">includes</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">include</span><span class="tag">&gt;</span>configuration.xml<span class="tag"><span class="tag-name">include</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">includes</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">excludes</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">exclude</span><span class="tag">&gt;</span>**/*.properties<span class="tag"><span class="tag-name">exclude</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">excludes</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">resource</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">resources</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">testResources</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">testResources</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;<span class="tag"><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li><span class="tag"><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
<br>
<ul>
<li><span style="line-height:30px; font-size:14px">resources: resource的列表，用于包括所有的资源</span></li><li><span style="line-height:30px; font-size:14px">targetPath: 指定目标路径，用于放置资源，用于build</span></li><li><span style="line-height:30px; font-size:14px">filtering: 是否替换资源中的属性placehold</span></li><li><span style="line-height:30px; font-size:14px">directory: 资源所在的位置</span></li><li><span style="line-height:30px; font-size:14px">includes: 样式，包括那些资源</span></li><li><span style="line-height:30px; font-size:14px">excludes: 排除的资源</span></li><li><span style="line-height:30px; font-size:14px">testResources: 测试资源列表</span></li></ul>
<span style="line-height:30px; font-size:14px"><strong>插件</strong><br>
&nbsp; 在build时，执行的插件，比较有用的部分，如使用jdk 5.0编译等等<br>
</span>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">plugins</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">plugin</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">groupId</span><span class="tag">&gt;</span>org.apache.maven.plugins<span class="tag"><span class="tag-name">groupId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>maven-jar-plugin<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">version</span><span class="tag">&gt;</span>2.0<span class="tag"><span class="tag-name">version</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">extensions</span><span class="tag">&gt;</span>false<span class="tag"><span class="tag-name">extensions</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">inherited</span><span class="tag">&gt;</span>true<span class="tag"><span class="tag-name">inherited</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">configuration</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">classifier</span><span class="tag">&gt;</span>test<span class="tag"><span class="tag-name">classifier</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">configuration</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">dependencies</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">dependencies</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">executions</span><span class="tag">&gt;</span>...<span class="tag"><span class="tag-name">executions</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">plugin</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">plugins</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;<span class="tag"><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt"><span class="tag"><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
<ul>
<li><span style="line-height:30px; font-size:14px">extensions: true or false，是否装载插件扩展。默认false</span></li><li><span style="line-height:30px; font-size:14px">inherited: true or false，是否此插件配置将会应用于poms，那些继承于此的项目</span></li><li><span style="line-height:30px; font-size:14px">configuration: 指定插件配置</span></li><li><span style="line-height:30px; font-size:14px">dependencies: 插件需要依赖的包</span></li><li><span style="line-height:30px; font-size:14px">executions: 用于配置execution目标，一个插件可以有多个目标。</span></li></ul>
<span style="line-height:30px; font-size:14px">如下：<br>
&nbsp;&nbsp;&nbsp; </span>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">plugin</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>maven-antrun-plugin<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">executions</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">execution</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">id</span><span class="tag">&gt;</span>echodir<span class="tag"><span class="tag-name">id</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">goals</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">goal</span><span class="tag">&gt;</span>run<span class="tag"><span class="tag-name">goal</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">goals</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">phase</span><span class="tag">&gt;</span>verify<span class="tag"><span class="tag-name">phase</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">inherited</span><span class="tag">&gt;</span>false<span class="tag"><span class="tag-name">inherited</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">configuration</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">tasks</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">echo</span><span class="tag">&gt;</span>Build&nbsp;Dir:&nbsp;${project.build.directory}<span class="tag"><span class="tag-name">echo</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">tasks</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">configuration</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">execution</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">executions</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">plugin</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
&nbsp; 说明：<br>
<ul>
<li><span style="line-height:30px; font-size:14px">id:规定execution 的唯一标志</span></li><li><span style="line-height:30px; font-size:14px">goals: 表示目标</span></li><li><span style="line-height:30px; font-size:14px">phase: 表示阶段，目标将会在什么阶段执行</span></li><li><span style="line-height:30px; font-size:14px">inherited: 和上面的元素一样，设置false maven将会拒绝执行继承给子插件</span></li><li><span style="line-height:30px; font-size:14px">configuration: 表示此执行的配置属性</span></li></ul>
<span style="line-height:30px; font-size:14px"><br>
<strong>插件管理</strong><br>
&nbsp;&nbsp;&nbsp; pluginManagement：插件管理以同样的方式包括插件元素，用于在特定的项目中配置。所有继承于此项目的子项目都能使用。主要定义插件的共同元素<br>
<br>
<strong>扩展元素集合</strong><br>
主要包括以下的元素：<br>
<strong>Directories</strong><br>
用于设置各种目录结构，如下：<br>
&nbsp; </span>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">sourceDirectory</span><span class="tag">&gt;</span>${basedir}/src/main/java<span class="tag"><span class="tag-name">sourceDirectory</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">scriptSourceDirectory</span><span class="tag">&gt;</span>${basedir}/src/main/scripts<span class="tag"><span class="tag-name">scriptSourceDirectory</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">testSourceDirectory</span><span class="tag">&gt;</span>${basedir}/src/test/java<span class="tag"><span class="tag-name">testSourceDirectory</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">outputDirectory</span><span class="tag">&gt;</span>${basedir}/target/classes<span class="tag"><span class="tag-name">outputDirectory</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">testOutputDirectory</span><span class="tag">&gt;</span>${basedir}/target/test-classes<span class="tag"><span class="tag-name">testOutputDirectory</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag"><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
<br>
<strong>Extensions</strong><br>
<br>
表示需要扩展的插件，必须包括进相应的build路径。<br>
<br>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">extensions</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">extension</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">groupId</span><span class="tag">&gt;</span>org.apache.maven.wagon<span class="tag"><span class="tag-name">groupId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>wagon-ftp<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">version</span><span class="tag">&gt;</span>1.0-alpha-3<span class="tag"><span class="tag-name">version</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">extension</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">extensions</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;</li><li>&nbsp;&nbsp;<span class="tag"><span class="tag-name">build</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt"><span class="tag"><span class="tag-name">project</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
<br>
<strong>Reporting</strong><br>
&nbsp;&nbsp;&nbsp; 用于在site阶段输出报表。特定的maven 插件能输出相应的定制和配置报表。<br>
&nbsp;
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">reporting</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">plugins</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">plugin</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">outputDirectory</span><span class="tag">&gt;</span>${basedir}/target/site<span class="tag"><span class="tag-name">outputDirectory</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">artifactId</span><span class="tag">&gt;</span>maven-project-info-reports-plugin<span class="tag"><span class="tag-name">artifactId</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">reportSets</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">reportSet</span><span class="tag">&gt;</span><span class="tag"><span class="tag-name">reportSet</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">reportSets</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">plugin</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">plugins</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag"><span class="tag-name">reporting</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<br>
<br>
<strong>Report Sets</strong><br>
&nbsp;&nbsp;&nbsp; 用于配置不同的目标，应用于不同的报表<br>
<div class="code_title">xml 代码</div>
<div class="dp-highlighter">
<div class="bar">&nbsp;</div>
<ol class="dp-xml" start="1">
<li class="alt"><span class="tag">&lt;</span><span class="tag-name">reporting</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">plugins</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">plugin</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">reportSets</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">reportSet</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">id</span><span class="tag">&gt;</span>sunlink<span class="tag"><span class="tag-name">id</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">reports</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">report</span><span class="tag">&gt;</span>javadoc<span class="tag"><span class="tag-name">report</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">reports</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">inherited</span><span class="tag">&gt;</span>true<span class="tag"><span class="tag-name">inherited</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">configuration</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">links</span><span class="tag">&gt;</span>&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag">&lt;</span><span class="tag-name">link</span><span class="tag">&gt;</span>http://java.sun.com/j2se/1.5.0/docs/api/<span class="tag"><span class="tag-name">link</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">links</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">configuration</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">reportSet</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">reportSets</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">plugin</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag"><span class="tag-name">plugins</span><span class="tag">&gt;</span>&nbsp;&nbsp;</span></li><li class="alt">&nbsp;&nbsp;<span class="tag"><span class="tag-name">reporting</span><span class="tag">&gt;</span>&nbsp; &nbsp;</span></li></ol>
</div>
</div>
   
</div>




<!-- Baidu Button BEGIN -->




<div class="bdsharebuttonbox tracking-ad" style="float: right;" data-mod="popu_172">
<a href="#" class="bds_more" data-cmd="more" style="background-position:0 0 !important; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=d754dcc0.png) !important"></a>
<a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"  style="background-position:0 -52px !important"></a>
<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"style="background-position:0 -104px !important"></a>
<a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"style="background-position:0 -260px !important"></a>
<a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"style="background-position:0 -208px !important"></a>
<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"style="background-position:0 -1612px !important" ></a>
</div>
<script>window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "1", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "16" }, "share": {} }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>
<!-- Baidu Button END -->

   <link rel="stylesheet" href="http://static.blog.csdn.net/css/blog_detail.css" />

    
<!--172.16.140.12-->

<!-- Baidu Button BEGIN -->
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=1536434" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
    document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>
<!-- Baidu Button END -->

 

        <div id="digg" ArticleId="7035307" >
            <dl id="btnDigg" class="digg digg_disable"  onclick="btndigga();">
               
                 <dt>顶</dt>
                <dd>2</dd>
            </dl>
           
              
            <dl id="btnBury" class="digg digg_disable"  onclick="btnburya();">
              
                  <dt>踩</dt>
                <dd>0</dd>               
            </dl>
            
        </div>
     <div class="tracking-ad" data-mod="popu_222"><a href="javascript:void(0);" >&nbsp;</a>   </div>
    <div class="tracking-ad" data-mod="popu_223"> <a href="javascript:void(0);" >&nbsp;</a></div>
    <script type="text/javascript">
                function btndigga() {
                    $(".tracking-ad[data-mod='popu_222'] a").click();
                }
                function btnburya() {
                    $(".tracking-ad[data-mod='popu_223'] a").click();
                }
            </script>

   <ul class="article_next_prev">
                <li class="prev_article"><span  onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_shangyipian']);location.href='/uohzoaix/article/details/7035302';">上一篇</span><a href="/uohzoaix/article/details/7035302" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_shangyipian'])">maven配置setting.xml文件详解</a></li>
                <li class="next_article"><span onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_xiayipian']);location.href='/uohzoaix/article/details/7035344';">下一篇</span><a href="/uohzoaix/article/details/7035344" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_xiayipian'])">maven pom.xml文件续</a></li>
    </ul>

    <div style="clear:both; height:10px;"></div>


        <div class="similar_article"  style="display:none">
                <h4>我的同类文章</h4>
                <div class="similar_c"style="margin:20px 0px 0px 0px">
                    <div class="similar_c_t">
                                <label class="similar_cur">
                                    <span  style="cursor:pointer"  onclick="GetCategoryArticles('939458','uohzoaix','foot','7035307');">javaEE<em>（69）</em></span>
                                </label>
                    </div>
                   
                    <div class="similar_wrap tracking-ad" data-mod="popu_141"  style="max-height:195px;">
                        <a href="http://blog.csdn.net" style="display:none">http://blog.csdn.net</a>
                        <ul class="similar_list fl">                          
                        </ul>

                        <ul class="similar_list fr">                           
                        </ul>
                    </div>
                </div>
            </div>    
    <script  type="text/javascript">
        $(function () {
            GetCategoryArticles('939458', 'uohzoaix','foot','7035307');
        });
    </script>
      
</div>
<div id="suggest"></div>
         <script  language="javascript" type='text/javascript'>     
             $(function(){
                 $.get("/uohzoaix/svc/GetSuggestContent/7035307",function(data){
                     $("#suggest").html(data);
                 });     
             });             
         </script>  


<style>
.blog-ass-articl dd {
color: #369;
width: 99%; /*修改行*/
float: left;
overflow: hidden;
font: normal normal 12px/23px "SimSun";
height: 23px;
margin: 0;
padding: 0 0 0 10px;
margin-right: 30px;
background: url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px;
}
</style>

 <link rel="stylesheet" href="http://static.blog.csdn.net/css/replace.css"/>
<div id="relate" data-mod="popu_218"  class="tracking-ad">
        <div class="relate_t">
            <h3><span>参考知识库</span></h3>
        </div>
        <div class="relate_c">
        </div>
</div>
 

<dl class="blog-ass-articl" id="res-relatived" > 
    <div class="embody embody_b" id="libkeyparent"  style="display:none">
            <span class="embody_t">更多资料请参考：</span>
            <div class="embody_c" id="libkey"></div>
    </div>


     <dt><span>猜你在找</span></dt>    


   


    <div id="adCollege" style="width: 42%;float: left;"> 
        <script src="http://csdnimg.cn/jobreco/job_reco.js" type="text/javascript"></script> 
        <script type="text/javascript">
            csdn.position.showEdu({
                sourceType: "blog",
                searchType: "detail",
                searchKey: "7035307",
                username: "",
                recordcount: "5",
                containerId: "adCollege" //容器DIV的id。 
            });
        </script> 
    </div>  

    
     <div id="res"  data-mod="popu_36"  class="tracking-ad" style="width: 42%;float: left;margin-right: 30px;"></div>
   
</dl>


<script type="text/javascript">
    $(function () {
        setTimeout(function () {
            var searchtitletags = 'maven配置pom.xml文件详解' + ',' + $("#tags").html();
            searchService({
                index: 'blog',
                query: searchtitletags,
                from: 5,
                size: 5,
                appendTo: '#res',
                url: 'recommend',
                his: 2,
                client: "blog_cf_enhance",
                tmpl: '<dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px;"><a href="#{ url }" title="#{ title }" strategy="#{ strategy }">#{ title }</a></dd>'
            });
        }, 500);
    });    

 </script>  

    <div id="ad_cen">        
<!-- 广告位开始 -->
<ins data-revive-zoneid="71" data-revive-id="8c38e720de1c90a6f6ff52f3f89c4d57"></ins>
<!-- 广告位结束 -->    </div>  

<div class="comment_class">
    <div id="comment_title" class="panel_head">
        <span class="see_comment">查看评论</span><a name="comments"></a></div>
    <div id="comment_list">
    </div>
    <div id="comment_bar">
    </div>
    <div id="comment_form">
    </div>
    <div class="announce">
        * 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场<a name="reply"></a><a name="quote"></a></div>
</div>

<script type="text/javascript">
    var fileName = '7035307';
    var commentscount = 0;
    var islock = false
</script>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/comment.js"></script>
    <div id="ad_bot">
    </div>
<div id="report_dialog">
</div>

<div id="d-top"  style="bottom:60px;">
        <a id="quick-reply" class="btn btn-top q-reply" title="快速回复" style="display:none;">
            <img src="http://static.blog.csdn.net/images/blog-icon-reply.png" alt="快速回复">
        </a>    

    <a id="d-top-a" class="btn btn-top backtop"  style="display: none;" title="返回顶部" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_huidaodingbu'])" style="">         
         <img src="http://static.blog.csdn.net/images/top.png" alt="TOP">
    </a>
</div>
<script type="text/javascript">
    $(function ()
    {
        $("#ad_frm_0").height("90px");
        
        setTimeout(function(){
            $("#ad_frm_2").height("200px");
        },1000);    
    });
  
</script>
<style type="text/css">
    .tag_list
    {
        background: none repeat scroll 0 0 #FFFFFF;
        border: 1px solid #D7CBC1;
        color: #000000;
        font-size: 12px;
        line-height: 20px;
        list-style: none outside none;
        margin: 10px 2% 0 1%;
        padding: 1px;
    }
    .tag_list h5
    {
        background: none repeat scroll 0 0 #E0DBD3;
        color: #47381C;
        font-size: 12px;
        height: 24px;
        line-height: 24px;
        padding: 0 5px;
        margin: 0;
    }
    .tag_list h5 a
    {
        color: #47381C;
    }
    .classify
    {
        margin: 10px 0;
        padding: 4px 12px 8px;
    }
    .classify a
    {
        margin-right: 20px;
        white-space: nowrap;
    }
</style>


<div class="tag_list" style="display:none"></div>
  <script  language="javascript" type='text/javascript'>     
      $(function(){
              setTimeout(function(){
                  $.get("/uohzoaix/svc/GetTagContent",function(data){
                      $(".tag_list").html(data).show();
                  });     
              });
          },500);                       
 </script> 


<div id="pop_win" style="display:none ;position: absolute; z-index: 10000; border: 1px solid rgb(220, 220, 220); top: 222.5px; left: 630px; opacity: 1; background: none 0px 0px repeat scroll rgb(255, 255, 255);">
    
</div>
<div id="popup_mask"></div>
<style>
    #popup_mask
    {
        position: absolute;
        width: 100%;
        height: 100%;
        background: #000;
        z-index: 9999;
        left: 0px;
        top: 0px;
        opacity: 0.3;
        filter: alpha(opacity=30);
        display: none;
    }

</style>




<script type="text/javascript">
    $(function(){
        setTimeout(function(){
            $(".comment_body:contains('回复')").each(function(index,item){
                var u=$(this).text().split('：')[0].toString().replace("回复","")
                var thisComment=$(this);
                if(u)
                {
                    $.getJSON("https://passport.csdn.net/get/nick?callback=?", {users: u}, function(a) {
                        if(a!=null&&a.data!=null&&a.data.length>0)
                        {
                            nick=a.data[0].n; 
                            if(u!=nick)
                            {
                                thisComment.text(thisComment.text().replace(u,nick));  
                            }
                        }       
                    });  
                }
            });         

        },200);  

        setTimeout(function(){
            $(".math").each(function(index,value){$(this).find("span").last().css("color","#fff"); })
        },5000);

        setTimeout(function(){
            $(".math").each(function(index,value){$(this).find("span").last().css("color","#fff"); })
        },10000);

        setTimeout(function(){
            $(".math").each(function(index,value){$(this).find("span").last().css("color","#fff"); })
        },15000);
        
        setTimeout(function(){
            $("a img[src='http://js.tongji.linezing.com/stats.gif']").parent().css({"position":"absolute","left":"50%"});
        },300);
    });

    function loginbox(){
        var $logpop=$("#pop_win");
        $logpop.html('<iframe src="https://passport.csdn.net/account/loginbox?service=http://static.blog.csdn.net/callback.htm" frameborder="0" height="600" width="400" scrolling="no"></iframe>');

        $('#popup_mask').css({
            opacity: 0.5,
            width: $( document ).width() + 'px',
            height:  $( document ).height() + 'px'
        });
        $('#popup_mask').css("display","block");
 
        $logpop.css( {
            top: ($( window ).height() - $logpop.height())/ 2  + $( window 
       ).scrollTop() + 'px',
            left:($( window ).width() - $logpop.width())/ 2
        } );
 
        setTimeout( function () {
            $logpop.show();
            $logpop.css( {
                opacity: 1
            } );
        }, 200 );
 
        $('#popup_mask').unbind("click");
        $('#popup_mask').bind("click", function(){
            $('#popup_mask').hide();
            var $clopop = $("#pop_win");
            $("#common_ask_div_sc").css("display","none");
            $clopop.css( {
                opacity: 0
            } );
            setTimeout( function () {
                $clopop.hide();
            }, 350 );
            return false;
        });
    }   

</script>
 <script language="javascript" type="text/javascript" src="http://ads.csdn.net/js/async_new.js"></script>      


                        <div class="clear">
                        </div>
                    </div>                   
                
            </div>
                   
           <div id="side">
    <div class="side">
<div id="panel_Profile" class="panel">
<ul class="panel_head"><span>个人资料</span></ul>
<ul class="panel_body profile">
<div id="blog_userface">
    <a href="http://my.csdn.net/uohzoaix" target="_blank">
    <img src="http://avatar.csdn.net/A/0/E/1_uohzoaix.jpg" title="访问我的空间" style="max-width:90%"/>
    </a>
    <br />
    <span><a href="http://my.csdn.net/uohzoaix" class="user_name" target="_blank">uohzoaix</a></span>
</div>
<div class="interact">

    <a href="javascript:void(0);" class="attent" id="span_add_follow" title="[加关注]"></a>

 <a href="javascript:void(0);" class="letter"  title="[发私信]" onclick="window.open('http://msg.csdn.net/letters/model?receiver=uohzoaix','_blank','height=350,width=700');_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_sixin'])"></a>  
</div>
<div id="blog_medal">
                <div id="bms_box">
               </div>
</div>
<ul id="blog_rank">
    <li>访问：<span>220538次</span></li>
    <li>积分：<span>3061</span> </li>    
    <li >等级： <span style="position:relative;display:inline-block;z-index:1" >
            <img src="http://c.csdnimg.cn/jifen/images/xunzhang/jianzhang/blog5.png" alt="" style="vertical-align: middle;" id="leveImg">
            <div id="smallTittle" style=" position: absolute;  left: -24px;  top: 25px;  text-align: center;  width: 101px;  height: 32px;  background-color: #fff;  line-height: 32px;  border: 2px #DDDDDD solid;  box-shadow: 0px 2px 2px rgba (0,0,0,0.1);  display: none;   z-index: 999;">
            <div style="left: 42%;  top: -8px;  position: absolute;  width: 0;  height: 0;  border-left: 10px solid transparent;  border-right: 10px solid transparent;  border-bottom: 8px solid #EAEAEA;"></div>
            积分：3061 </div>
        </span>  </li>
    <li>排名：<span>第7250名</span></li>
</ul>
<ul id="blog_statistics">
    <li>原创：<span>76篇</span></li>
    <li>转载：<span>59篇</span></li>
    <li>译文：<span>3篇</span></li>
    <li>评论：<span>43条</span></li>
</ul>
</ul>
</div>


<div class="panel" id="panel_Search">
    <ul class="panel_head"><span>文章搜索</span></ul>
    <ul class="panel_body">
        <form id="frmSearch" action="http://so.csdn.net/search" class="form_search" target="_blank">
        <span><input id="inputSearch" type="text" class="blogsearch" title="请输入关键字" /></span>
        <input id="btnSubmit" type="button" value="搜索" title="search in blog" />
        <input type="hidden" name="q" id="inputQ" />
        <input type="hidden" name="t" value="blog" />
        <a id="btnSearchBlog" target="_blank"></a>
        </form>
    </ul>
</div>

<script type="text/javascript">
    $(function () {
        $("#btnSubmit").click(function () {           
            search();
        });

        $("#frmSearch").submit(function () {
            search();
            return false;
        });

        function search()
        {
            var url = "http://so.csdn.net/so/search/s.do?q=" + encodeURIComponent($("#inputSearch").val()) + "&u=" + username + "&t=blog";
            window.location.href = url;
        }   
    });
</script><div id="panel_Category" class="panel">
<ul class="panel_head"><span>文章分类</span></ul>
<ul class="panel_body">    
                 <li>
                    <a href="/uohzoaix/article/category/939458" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">javaEE</a><span>(70)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/939459" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">工作</a><span>(25)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/939460" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">运维</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/939461" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">android</a><span>(5)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/939462" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">心情</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/939463" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">恋爱</a><span>(0)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/953650" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">freemarker</a><span>(3)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/1057983" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">FileNet</a><span>(2)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/1061714" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">Smack和openfire</a><span>(5)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/1063328" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">javascript（jquery）</a><span>(19)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/1126375" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">Hadoop HBase</a><span>(2)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/1128897" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">python</a><span>(19)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/1176986" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">其他技术</a><span>(3)</span>
                </li>
                 <li>
                    <a href="/uohzoaix/article/category/1196565" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">数据库</a><span>(1)</span>
                </li>
</ul>
</div><div id="panel_Archive" class="panel">
<ul class="panel_head"><span>文章存档</span></ul>
<ul class="panel_body">
<div id="archive_list">
<!--归档统计-->
<li><a href="/uohzoaix/article/month/2013/03">2013年03月</a><span>(1)</span></li><li><a href="/uohzoaix/article/month/2013/02">2013年02月</a><span>(1)</span></li><li><a href="/uohzoaix/article/month/2012/08">2012年08月</a><span>(6)</span></li><li><a href="/uohzoaix/article/month/2012/07">2012年07月</a><span>(14)</span></li><li><a href="/uohzoaix/article/month/2012/06">2012年06月</a><span>(8)</span></li><li><a href="/uohzoaix/article/month/2012/05">2012年05月</a><span>(4)</span></li><li><a href="/uohzoaix/article/month/2012/04">2012年04月</a><span>(16)</span></li><li><a href="/uohzoaix/article/month/2012/03">2012年03月</a><span>(23)</span></li><li><a href="/uohzoaix/article/month/2012/02">2012年02月</a><span>(5)</span></li><li><a href="/uohzoaix/article/month/2012/01">2012年01月</a><span>(26)</span></li><li><a href="/uohzoaix/article/month/2011/12">2011年12月</a><span>(33)</span></li><li><a href="/uohzoaix/article/month/2011/11">2011年11月</a><span>(1)</span></li>
</div>
</ul>
</div>
<div id="hotarticls" class="panel">
<ul class="panel_head">
    <span>       
阅读排行    </span>
</ul>

<ul class="panel_body itemlist">
<li>
<a href="/uohzoaix/article/details/7372427" title="hibernate处理批量更新和批量删除">hibernate处理批量更新和批量删除</a><span>(26773)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7035302" title="maven配置setting.xml文件详解">maven配置setting.xml文件详解</a><span>(18336)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7189949" title="SASL">SASL</a><span>(9813)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7035307" title="maven配置pom.xml文件详解">maven配置pom.xml文件详解</a><span>(8180)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7195511" title="详解contextConfigLocation">详解contextConfigLocation</a><span>(5828)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7191228" title="XMPP服务器, BOSH(Http-Binding)和WEB客户端搭建">XMPP服务器, BOSH(Http-Binding)和WEB客户端搭建</a><span>(5126)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7272323" title="ActionSupport.getText()方法">ActionSupport.getText()方法</a><span>(4607)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7533943" title="document.location.protocol与谷歌分析">document.location.protocol与谷歌分析</a><span>(3678)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7396662" title="Arrays.asList()方法介绍">Arrays.asList()方法介绍</a><span>(3300)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7031660" title="netty学习">netty学习</a><span>(3211)</span>
</li>
</ul>
</div>
<div id="hotarticls2" class="panel">
<ul class="panel_head"><span>评论排行</span></ul>
<ul class="panel_body itemlist">
<li>
<a href="/uohzoaix/article/details/7035302" title="maven配置setting.xml文件详解">maven配置setting.xml文件详解</a><span>(3)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7710783" title="js正则表达式验证各类需求（整数，实数，小数，时间，URL等）">js正则表达式验证各类需求（整数，实数，小数，时间，URL等）</a><span>(3)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7195511" title="详解contextConfigLocation">详解contextConfigLocation</a><span>(3)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7386277" title="项目感想（存储过程）">项目感想（存储过程）</a><span>(3)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7272323" title="ActionSupport.getText()方法">ActionSupport.getText()方法</a><span>(2)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7192965" title="Calendar的add()方法介绍">Calendar的add()方法介绍</a><span>(2)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7372427" title="hibernate处理批量更新和批量删除">hibernate处理批量更新和批量删除</a><span>(2)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7161656" title="清空tomcat缓存">清空tomcat缓存</a><span>(2)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7524913" title="eclipse各种常用插件在线安装">eclipse各种常用插件在线安装</a><span>(2)</span>
</li>
<li>
<a href="/uohzoaix/article/details/7624850" title="netty初步使用">netty初步使用</a><span>(2)</span>
</li>
</ul>
</div>
<div id="homepageArticles" class="panel tracking-ad" data-mod="popu_4">
<ul class="panel_head"><span>推荐文章</span></ul>
<ul class="panel_body" id="ad_commend">
<ul>
<li><a href="http://blog.csdn.net/evan_man/article/details/51328628" 
target="_blank">*EventBus的使用与深入学习</a></li>
<li><a href="http://blog.csdn.net/xuehuayous/article/details/51324656" 
target="_blank">*Android 拍照、选择图片并裁剪</a></li>
<li><a href="http://blog.csdn.net/u013831257/article/details/50784565" 

target="_blank">* 安卓自定义View进阶-Path基本操作</a></li>
<li><a 

href="http://blog.csdn.net/je930502/article/details/50650231"target="_blank">*Ceph架构</a></li>
<li><a href="http://blog.csdn.net/gj19890923/article/details/51333899" 
target="_blank">*neutron-server的启动流程(一)</a></li>
<li><a href="http://blog.csdn.net/xueshanhaizi/article/details/51321382" target="_blank">*Android事件分发机制浅析</a></li>

</ul></ul>
</div>


<div id="newcomments" class="panel">
<ul class="panel_head"><span>最新评论</span></ul>
<ul class="panel_body itemlist">
    <li>
   
         <a href="/uohzoaix/article/details/7035302#comments">maven配置setting.xml文件详解</a>
    <p style="margin:0px;"><a href="/chinaxy1" class="user_name">chinaxy1</a>:
说得( ^_^ )不错嘛
    </p>
    </li>
    <li>
   
         <a href="/uohzoaix/article/details/7372427#comments">hibernate处理批量更新和批量删除</a>
    <p style="margin:0px;"><a href="/mmayanfa" class="user_name">mmayanfa</a>:
你懂什么叫批量删除，批量插入吗，，明显都仅仅是单条操作，，瞎写的
    </p>
    </li>
    <li>
   
         <a href="/uohzoaix/article/details/7372427#comments">maven配置setting.xml文件详解</a>
    <p style="margin:0px;"><a href="/zhuojiajin" class="user_name">zhuojiajin</a>:
详细，相当有价值！
    </p>
    </li>
    <li>
   
         <a href="/uohzoaix/article/details/8622823#comments">复制Iterator元素给数组并保证数组长度等于Iterator元素个数</a>
    <p style="margin:0px;"><a href="/zlyny" class="user_name">zlyny</a>:
ithomer
    </p>
    </li>
    <li>
   
         <a href="/uohzoaix/article/details/7904699#comments">重构http请求</a>
    <p style="margin:0px;"><a href="/luyee2010" class="user_name">luyee2010</a>:
PoolingClientConnectionManager这东西在4.3又废弃了，4.3又换这个了...
    </p>
    </li>
    <li>
   
         <a href="/uohzoaix/article/details/7904699#comments">hibernate处理批量更新和批量删除</a>
    <p style="margin:0px;"><a href="/penkee" class="user_name">penkee</a>:
if ( i % 20 == 0 ) { //单次批量操作的数目为20你这不是第一次就执行flush...
    </p>
    </li>
    <li>
   
         <a href="/uohzoaix/article/details/7195511#comments">详解contextConfigLocation</a>
    <p style="margin:0px;"><a href="/shen332401890" class="user_name">shen332401890</a>:
谢谢楼主分享！~！~！
    </p>
    </li>
    <li>
   
         <a href="/uohzoaix/article/details/7031235#comments">java通用的DES加密方法</a>
    <p style="margin:0px;"><a href="/ALoveBtoC" class="user_name">ALoveBtoC</a>:
import org.apache.commons.codec.DecoderException;i...
    </p>
    </li>
    <li>
   
         <a href="/uohzoaix/article/details/7191228#comments">XMPP服务器, BOSH(Http-Binding)和WEB客户端搭建</a>
    <p style="margin:0px;"><a href="/yuyue007" class="user_name">yuyue007</a>:
楼主的这个demo的js是有跨域的访问么？Strophe框架中跨域的那个js好像链接失效了。
    </p>
    </li>
    <li>
   
         <a href="/uohzoaix/article/details/7524913#comments">eclipse各种常用插件在线安装</a>
    <p style="margin:0px;"><a href="/zhaotianen2916" class="user_name">zhaotianen2916</a>:
挺好的，顶了
    </p>
    </li>
</ul>
</div>
    </div>
    <div class="clear">
    </div>
 </div>   
            <div class="clear">
            </div>
        </div>

        

<script type="text/javascript" src="http://c.csdnimg.cn/rabbit/cnick/cnick.js"></script>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/newblog.min.js"></script>


<script type="text/javascript" src="http://medal.blog.csdn.net/showblogmedal.ashx?blogid=1218415"></script>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/JavaScript1.js"></script>

    <script type="text/javascript" src="http://passport.csdn.net/content/loginbox/login.js"></script>
<script type="text/javascript">document.write("<img src=http://counter.csdn.net/pv.aspx?id=24 border=0 width=0 height=0>");</script>
<script type="text/javascript" src="http://www.csdn.net/ui/scripts/Csdn/counter.js"></script>
<script type="text/javascript" src="http://ad.csdn.net/scripts/ad-blog.js"></script>
<script type="text/javascript">
    $(function () {
        function __get_code_toolbar(snippet_id) {
            return $("<span class='tracking-ad' data-mod='popu_167'><a href='https://code.csdn.net/snippets/"
                    + snippet_id
                    + "' target='_blank' title='在CODE上查看代码片'  style='text-indent:0;'><img src='https://code.csdn.net/assets/CODE_ico.png' width=12 height=12 alt='在CODE上查看代码片' style='position:relative;top:1px;left:2px;'/></a></span>"
                    + "<span class='tracking-ad' data-mod='popu_170'><a href='https://code.csdn.net/snippets/"
                    + snippet_id
                    + "/fork' target='_blank' title='派生到我的代码片' style='text-indent:0;'><img src='https://code.csdn.net/assets/ico_fork.svg' width=12 height=12 alt='派生到我的代码片' style='position:relative;top:2px;left:2px;'/></a></span>");
        }
        
        $("[code_snippet_id]").each(function () {
            __s_id = $(this).attr("code_snippet_id");
            if (__s_id != null && __s_id != "" && __s_id != 0 && parseInt(__s_id) > 70020) {
                __code_tool = __get_code_toolbar(__s_id);
                $(this).prev().find(".tools").append(__code_tool);
            }
        });

        $(".bar").show();
    });
</script>




    </div>
      <!--new top-->
    
    <script id="csdn-toolbar-id" btnId="header_notice_num" wrapId="note1" count="5" subCount="5" type="text/javascript" src="http://c.csdnimg.cn/public/common/toolbar/js/toolbar.js"></script>     <!--new top-->
   
    <link href="http://c.csdnimg.cn/comm_ask/css/ask_float_block.css" type="text/css" rel="stylesheet" />
    <script language='JavaScript' type='text/javascript' src='http://c.csdnimg.cn/comm_ask/js/libs/wmd.js'></script>
    <script language='JavaScript' type='text/javascript' src='http://c.csdnimg.cn/comm_ask/js/libs/showdown.js'></script>
    <script language='JavaScript' type='text/javascript' src='http://c.csdnimg.cn/comm_ask/js/libs/prettify.js'></script>
    <script language='JavaScript' type='text/javascript' src='http://c.csdnimg.cn/comm_ask/js/apps/ask_float_block.js'></script>
   

  <div id="a52b5334d" style="width: 1px; height: 1px; display: none;">
                    <script id="adJs52b5334"></script>
                    <script>document.getElementById("adJs52b5334").src = "http://ads.csdn.net/js/opt/52b5334.js?t=" + Math.random();</script>
   </div>

</body>
</html>   
 